package com.hcloud.hcloudbasedemo

import com.hcloud.baselib.common.StateLiveData
import com.hcloud.baselib.repo.BaseRepo
import javax.inject.Inject
import javax.inject.Singleton


@Singleton
class TestRepo @Inject constructor(private val testApi: TestApi) : BaseRepo() {

    suspend fun getTestData(stateLiveData: StateLiveData<LoginRes>) {
        executeResp({
            testApi.login("admin", "123")
        }, stateLiveData)
    }
}